<% provide(:title, "Edit user") %>
<h1 class="text-center">Update your profile</h1>

<div class="container">
  <div class="row clearfix">
    <div class="col-md-2 column">
    </div>
    <div class="col-md-2 column">
      <div class="gravatar_edit">
        <%= gravatar_for(@user, size: 120) %>
        <div>
          <a href="http://gravatar.com/emails" target="_blank">
            <button class="btn btn-default">Change</button>
          </a>
        </div>
      </div>
    </div>
    <div class="col-md-6 column">
      <%= form_for(@user) do |f| %>
          <%= render 'shared/error_messages' %>

          <%= f.label :name %>
          <%= f.text_field :name, class: 'form-control' %>

          <%= f.label :email %>
          <%= f.email_field :email, class: 'form-control' %>

          <%= f.label :password %>
          <%= f.password_field :password, class: 'form-control' %>

          <%= f.label :password_confirmation, "Confirmation" %>
          <%= f.password_field :password_confirmation, class: 'form-control' %>

          <%= f.submit "Save changes", class: "btn btn-primary" %>
      <% end %>

    </div>
  </div>
</div>

